﻿@model GameSchoolApplication.Models.Video

@{
    ViewBag.Title = "Horfa á myndband";
    Layout = "~/Views/Shared/_StudentLayout.cshtml";
}

<h2>@Model.Title</h2>

<iframe width="560" height="315" src="@Model.VideoPath.Replace("watch?v=", "embed/")" frameborder="0" allowfullscreen="false"></iframe>

 <div>
	<ul class="commentList" id="commentList">
        @foreach (var comment in Model.Comments)
        {
             <li>
                <a href="">@comment.Author.Name</a>
                 <div class="commentBody">
                    <span>
                        <p class="commentcontent">@comment.Content</p></span>
                    <div>
                        <abbr title="${CommentDate}">@comment.CommentDate</abbr>
                    </div>
                 </div>
            </li>
        }
    <li class="commentAdd">
         <textarea id="CommentText" name="CommentText" rows="3" cols="20"></textarea>
		 <label>
		    <input type="button" id="btnSubmit" value="Skrifa athugasemd" />
	     </label>
        @Html.ValidationMessage("CommentText")
    </li>
    </ul>
    </div>
    <p>
    @Html.ActionLink("Back to List", "Index")
    </p>
   
    <input id="videoId" type="hidden" value="@Model.VideoId" />

    
   <script type="text/html" id="commentTemplate">
   
    </script> 

